//
//  ReadTableViewCell.m
//  口袋
//
//  Created by tiankun on 15/5/21.
//  Copyright (c) 2015年 口袋. All rights reserved.
//

#import "ReadTableViewCell.h"
#import "DKNightVersion.h"

#define W  [UIScreen mainScreen].bounds.size.width
#define H  [UIScreen mainScreen].bounds.size.height *0.181
@implementation ReadTableViewCell
- (void)dealloc
{
    [_digest release];
    [_title release];
    [_showImage release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.showImage = [[UIImageView alloc]initWithFrame:CGRectMake(5, 8, W * 0.32,[UIScreen mainScreen].bounds.size.height * 0.173)];
        [self.contentView addSubview:self.showImage];
        [self.showImage release];
        self.title = [[UILabel alloc]initWithFrame:CGRectMake(W * 0.37, H * 0.095, W * 0.6, H * 0.4)];
        self.title.font = [UIFont boldSystemFontOfSize:15];
        self.title.nightTextColor = [UIColor lightGrayColor];
        [self.contentView addSubview:self.title];
        [self.title release];
        self.digest = [[UILabel alloc]initWithFrame:CGRectMake(W * 0.37, H * 0.48, W * 0.55, H * 0.4)];
        self.digest.nightTextColor = [UIColor lightGrayColor];
        self.digest.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:self.digest];
        [self.digest release];
        [DKNightVersionManager addClassToSet:self.class];
        self.nightBackgroundColor = UIColorFromRGB(0x343434);
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
